package com.zdp.dubbo.service;

import domain.User;
import org.apache.dubbo.common.stream.StreamObserver;

/**
 * @author ZhengDp
 * @Date 2023/6/3 19:34
 */
public interface UserService {
    // UNARY
    User getUser(String uid);

    // Server Stream
    void sayHelloServerStream(String uid, StreamObserver<String> response) throws InterruptedException;

    // Client-Stream

    StreamObserver<String> sayHelloClientStream(StreamObserver<String> request);
}
